package com.zyc.strategyMode;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * @author zyc
 * @create 2022--06--10 15:18
 */
@AllArgsConstructor
@Getter
@Setter
public class CashReturn extends CashSuper {
    private double moneyCondition = 0;
    private double moneyReturn = 0;
    public double acceptCash(double money) {
        if (money > moneyCondition) {
            money -= moneyReturn;
        }
        return money;
    }
}
